import React from 'react'

import './index.scss'

import NavHeader from '../../components/NavHeader'

class Map extends React.Component {
  render() {
    return (
      <div className="map">
        <NavHeader>地图找房</NavHeader>
        <div id="container"></div>
      </div>
    )
  }
  componentDidMount() {
    const BMap = window.BMap
    const map = new BMap.Map('container')
    const point = new BMap.Point(121.61852754699555, 31.040802140948763)
    map.centerAndZoom(point, 15)
  }
}

export default Map
